package com.jarvis.hospital.prescription.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.jarvis.hospital.R;
import com.jarvis.hospital.prescription.model.PrescriptionItemModel;

import java.util.List;

/**
 * Created by jarvis.liu on 9/12/2016.
 */
public class DefaultPrescriptionAdapter extends BaseQuickAdapter<PrescriptionItemModel> {

    public DefaultPrescriptionAdapter(int layoutResId, List<PrescriptionItemModel> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder baseViewHolder, PrescriptionItemModel prescriptionItemModel) {
        baseViewHolder
                .setText(R.id.tv_name, prescriptionItemModel.getProgrammeName());

    }
}
